linux_aria

My file bash, and configurate for linux


Project maintained by ariafatah0711 Hosted on GitHub Pages — Theme by mattgraham

Function

cara 1

function_name () {
  command
}

# alternatif
function_name () { command; }

cara 2

function function_name {
  command
}

# alternatif 1 baris
function function_name { command; }

contoh

#!/bin/sh
 
# Tulis function di sini
Hello () {
  echo "Hello World"
}
 
# Panggil function
Hello

Input/Output

Output Redirection

Redirect STDOUT

Redirect STDERR

Input Redirection

Redirect STDIN

Pipe